export const mixin = {
	data () {
		return {
			statusBarHeight: 0,
			navBarHeight: 40
		}
	},
	created () {
		const info = uni.getSystemInfoSync()
		//#ifndef H5
		this.statusBarHeight = info.statusBarHeight
		//#endif
		//#ifdef MP-WEIXIN
		const menuButtonInfo = uni.getMenuButtonBoundingClientRect()
		this.navBarHeight = ((menuButtonInfo.bottom - info.statusBarHeight) + (menuButtonInfo.top - info.statusBarHeight))
		//#endif

		//#ifdef APP-NVUE
		const dom = weex.requireModule('dom');
		dom.addRule('fontFace', {
			fontFamily: 'iconfont',
			src: "url('https://at.alicdn.com/t/font_2188142_b9vwmqsbbqm.ttf?t=1633491335462')"
		})
		//#endif
	}
}